[SPARK-4268][SQL] Use #::: to get benefit from Stream in SqlLexical.allCaseVersions#3132
[SPARK-4268][SQL] Use #::: to get benefit from Stream in SqlLexical.allCaseVersions#3132zsxwing wants to merge 1 commit intoapache:masterfrom zsxwing:SPARK-4268
Conversation
|
Test build #22996 has started for PR 3132 at commit
|
|
Test build #22996 has finished for PR 3132 at commit
|
|
Test PASSed. |
There was a problem hiding this comment.
Why is this better? Because its lazy? Given that these are all materialized eventually the possible benefit seems dubious given the drop in readability. (Please correct me if I'm wrong).
There was a problem hiding this comment.
Given that these are all materialized eventually
Didn't realize it. However, then why not use List? Since laziness is not necessary, using Stream is confusing.
There was a problem hiding this comment.
That is a good point, I don't know why it is a Stream but I guess this change is okay.
In addition, using
s.isEmptyto eliminate the string comparison.